package com.xiaoyang.forum.service;

import com.xiaoyang.forum.domain.dto.MessageDTO;
import com.xiaoyang.forum.domain.pojo.Message;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaoyang.forum.domain.vo.MessageVO;

import java.util.List;

/**
 * @author XiaoYang
 * @since 2025-08-23
 */
public interface IMessageService extends IService<Message> {

    int sendMessage(MessageDTO messageDTO);

    Long getUnreadCount(long userId);

    List<MessageVO> toList(long receiveUserId);

    Integer updateState(Long id, long userId);

    int reply(MessageDTO messageDTO);
}
